﻿

namespace TouchPoint.Render
{
    using System;
    using Windows.UI;
    using System.Collections.Generic;
    using System.Text;

    using Layout_Width = System.Single;
    using Layout_Height = System.Single;
    using Windows.UI.Xaml;

    /// <summary>
    /// 
    /// </summary>
    public sealed class LayoutTree
    {
        #region Layout Node

        /// <summary>
        /// 表示一个布局节点
        /// </summary>
        public sealed class LayoutNode
        {
            /// <summary>
            /// 当前布局节点的父节点
            /// </summary>
            public LayoutNode Parent { get; set; }

            /// <summary>
            /// 当前布局节点计算后的高度
            /// </summary>
            public float Height { get; set; }

            /// <summary>
            /// 当前布局节点计算后的宽度
            /// </summary>
            public float Width { get; set; }

            /// <summary>
            /// 当前布局节点计算之后的可视性
            /// </summary>
            public Visibility Visibility { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public RenderElement Value { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public List<LayoutNode> SubNodes { get; set; } = new List<LayoutNode>();
        }
        #endregion
       
    }
}
